export default
  [
    {
      path: '',
      redirect: 'workbench'
    },
    // 数据可视化
    {
      path: 'workbench',
      name: 'salesCenter/workbench',
      component: () => import('@/page/salesCenter/workbench'),
      meta: { openKeyName: '数据可视化', selectKeyUrl: 'workbench' } // 工作台
    },
    // 业务管理
    {
      path: 'createBussinessOrder',
      name: 'salesCenter/createBussinessOrder',
      component: () => import('@/page/salesCenter/createBussinessOrder'),
      meta: { openKeyName: '业务管理', selectKeyUrl: 'createBussinessOrder' } // 业务单
    },
    {
      path: 'createBussinessOrder/success',
      name: 'salesCenter/createBussinessOrder/success',
      component: () => import('@/page/salesCenter/createOrderSuccess'),
      meta: { openKeyName: '业务管理', selectKeyUrl: 'createBussinessOrder' }
    },
    {
      path: 'orderAudit',
      name: 'salesCenter/orderAudit',
      component: () => import('@/page/salesCenter/orderAudit'),
      meta: { openKeyName: '业务管理', selectKeyUrl: 'orderAudit' }
    },
    {
      path: 'orderAuditDetail/:id',
      name: 'salesCenter/orderAuditDetail',
      props: true,
      component: () => import('@/page/salesCenter/orderAuditDetail'),
      meta: { openKeyName: '业务管理', selectKeyUrl: 'orderAudit' }
    },
    {
      path: 'salesOrder/edit/:id',
      name: 'salesOrderEdit',
      component: () => import('@/page/salesCenter/orderEdit'),
      props: true,
      meta: { openKeyName: '业务管理', selectKeyUrl: 'orderAudit' }
    },
    {
      path: 'orderManage',
      name: 'salesCenter/orderManage',
      component: () => import('@/page/salesCenter/orderManage'),
      meta: { openKeyName: '业务管理', selectKeyUrl: 'orderManage' } // 订单
    },
    {
      path: 'salesOrder/detail/:id',
      name: 'salesOrderDetail',
      component: () => import('@/page/salesCenter/orderDetail'),
      props: true,
      meta: { openKeyName: '业务管理', selectKeyUrl: 'orderManage' }
    },
    {
      path: 'salesOrder/change/:id',
      name: 'salesOrderApplyChange',
      component: () => import('@/page/salesCenter/orderChangeApply'),
      props: true,
      meta: { openKeyName: '业务管理', selectKeyUrl: 'orderManage' }
    },
    // 改单审核
    {
      path: 'changeOrderAudit',
      name: 'salesCenter/changeOrderAudit',
      component: () => import('@/page/salesCenter/changeOrderAudit'),
      meta: { openKeyName: '业务管理', selectKeyUrl: 'changeOrderAudit' }
    },
    {
      path: 'changeOrderDetail/:id',
      name: 'salesCenter/changeOrderDetail',
      props: true,
      component: () => import('@/page/salesCenter/changeOrderDetail'),
      meta: { openKeyName: '业务管理', selectKeyUrl: 'changeOrderAudit' }
    },
    {
      path: 'changeOrderEdit/:id',
      name: 'salesCenter/changeOrderEdit',
      props: true,
      component: () => import('@/page/salesCenter/changeOrderEdit'),
      meta: { openKeyName: '业务管理', selectKeyUrl: 'changeOrderAudit' }
    },
    {
      path: 'customManage',
      name: 'salesCenter/customManage',
      component: () => import('@/page/salesCenter/customManage'),
      meta: { openKeyName: '业务管理', selectKeyUrl: 'customManage' } // 客户
    },
    {
      path: 'customManageOperation',
      name: 'salesCenter/customManageOperation',
      component: () => import('@/page/salesCenter/customManageOperation'),
      meta: { openKeyName: '业务管理', selectKeyUrl: 'customManage' } // 客户管理 新增与编辑
    },
    {
      path: 'customManage/:id',
      name: 'salesCenter/customManageDetail',
      component: () => import('@/page/salesCenter/customManageDetail'),
      props: true,
      meta: { openKeyName: '业务管理', selectKeyUrl: 'customManage' } // 客户管理 查看
    },
    {
      path: 'customPackingList',
      name: 'salesCenter/customPackingList',
      component: () => import('@/page/salesCenter/customPackingList'),
      props: true,
      meta: { openKeyName: '业务管理', selectKeyUrl: 'customPackingList' } // 客户装箱单
    },
    {
      path: 'customBill',
      name: 'salesCenter/customBill',
      component: () => import('@/page/salesCenter/customBill'),
      props: true,
      meta: { openKeyName: '业务管理', selectKeyUrl: 'customBill' } // 客户装箱单
    },
    // 销售及考核
    {
      path: 'outstandingAssessment',
      name: 'salesCenter/outstandingAssessment',
      component: () => import('@/page/salesCenter/outstandingAssessment'),
      meta: { openKeyName: '销售及考核', selectKeyUrl: 'outstandingAssessment' } // 销售业绩考核
    },
    {
      path: 'customerBoxQuantity',
      name: 'salesCenter/customerBoxQuantity',
      component: () => import('@/page/salesCenter/customerBoxQuantity'),
      meta: { openKeyName: '销售及考核', selectKeyUrl: 'customerBoxQuantity' } // 客户箱量情况
    },
    {
      path: 'saleManage',
      name: 'salesCenter/saleManage',
      component: () => import('@/page/salesCenter/saleManage'),
      meta: { openKeyName: '销售及考核', selectKeyUrl: 'saleManage' } // 销售管理
    },
    {
      path: 'dailyStatisticsContainerVolume',
      name: 'salesCenter/dailyStatisticsContainerVolume',
      component: () => import('@/page/salesCenter/dailyStatisticsContainerVolume'),
      meta: { openKeyName: '销售及考核', selectKeyUrl: 'dailyStatisticsContainerVolume' } // 日箱量统计表
    },
    {
      path: 'salesVolumeDistribution',
      name: 'salesCenter/salesVolumeDistribution',
      component: () => import('@/page/salesCenter/salesVolumeDistribution'),
      meta: { openKeyName: '销售及考核', selectKeyUrl: 'salesVolumeDistribution' } // 销售箱量分布
    }
  ]
